Moved subscribe post after the event 'message' is registered