Added Output utility class. Prune code.