Updated file to run as windows service.