Fixed the bug. Was incorrectly accounting for orbits.