Amended class to hide output when not using CLI.