Finished implementing dynapotential