Re-implemented redirection for < > >>. RedirectOutput function now has an additional argument for determining > or >>.