Replace screen frame computations with movetounit.