Move network code to Messenger object.