Fix movement and idle time calculations for the module.