Redirected stdout and stderr to Main.stdout and Main.stderr