Revert "Moved back to STDOUT"

This reverts commit 9db19f1995f899f895ad302a2ebefd2befd8d15e.
Updated variable reference