Added functionality for executing commands and piping