Added a tee into the system call so that the output is still pushed to stdout.