Modified to accept new payload structure. It doesn't update the world or anything yet