Added a timeout message to client if no movement is received on time. Also did some modifications on runloop to correct possible deadlock.