Now uses tee instead of utilizing script for logging