Added functionality for piping cmds