Changed 'command' to 'type'