Receive loop working