Refractored and added output of Windows executable