Refactored to use $stdout
Much easier to mock without re-declaring constants! :+1: