Refactored output functions. :moyai: