Added Output redirection, error with forking