Better redirection to stdout and stderr