Now able to handle stderr and stdout streams