Giant planets can significantly influence terrestrial planet formation. The presence of giants tends to increase eccentricities and inclinations (see Kozai mechanism) of planetesimals and embryos in the terrestrial planet region (inside 4 AU in the Solar System). If giant planets form too early, they can slow or prevent inner planet accretion. If they form near the end of the oligarchic stage, as is thought to have happened in the Solar System, they will influence the merges of planetary embryos, making them more violent. As a result, the number of terrestrial planets will decrease and they will be more massive. In addition, the size of the system will shrink, because terrestrial planets will form closer to the central star. The influence of giant planets in the Solar System, particularly that of Jupiter, is thought to have been limited because they are relatively remote from the terrestrial planets.