Added stdout/err redirect