Added logging in windows program.