Removed sleep and comms related code