Convert OutputHandler functions to a class