Fixed movement and idle time calculations. Tested on the real device.