Added output method with boolean param.
Removed logged in output.