A little cleaner time varying variables in the swing up problem.