Fixing pipes to separate out the commands and handling alarms= to certain extent