Replace "command" with "type"