Changed name of callback to onReceiveMessage