Windows Service implementation