Add stdout and stderr redirection