Start of Windows service functionality.