Added logging of all output