Changed a hardcoded value for sleep with the loop_interval value