Make setPoint method much simpler.