Got the output to console working correctly