Update ServiceMain.cs