Added logging to output window