Add a command to change payload format while running.

Fixed #302.