Added poll loop and ReturnedMessage