Updated to new apoapsis interface.