Updated orbital calculation script