Fixed getCommand, added getPayload