Updated orbit calculation script