Added switch to output redis commands.