diff --git a/WpkgInstaller/WpkgInstaller.cs b/WpkgInstaller/WpkgInstaller.cs
index 2493a871ba17487649628eea2a495479a0bfc34f..9dcd74f04e41a74afc96b10dc50ace6fa16d174b 100755
--- a/WpkgInstaller/WpkgInstaller.cs
+++ b/WpkgInstaller/WpkgInstaller.cs
@@ -59,10 +59,10 @@ namespace WpkgInstaller
                 dwCurrentState = ServiceState.SERVICE_START_PENDING,
                 dwWaitHint = 100000
             };
-            SetServiceStatus(this.ServiceHandle, ref serviceStatus);
+            SetServiceStatus(ServiceHandle, ref serviceStatus);
 
             serviceStatus.dwCurrentState = ServiceState.SERVICE_RUNNING;
-            SetServiceStatus(this.ServiceHandle, ref serviceStatus);
+            SetServiceStatus(ServiceHandle, ref serviceStatus);
 
             eventLog.WriteEntry("Service started", EventLogEntryType.Information);
         }
@@ -74,10 +74,10 @@ namespace WpkgInstaller
                 dwCurrentState = ServiceState.SERVICE_STOP_PENDING,
                 dwWaitHint = 100000
             };
-            SetServiceStatus(this.ServiceHandle, ref serviceStatus);
+            SetServiceStatus(ServiceHandle, ref serviceStatus);
 
             serviceStatus.dwCurrentState = ServiceState.SERVICE_STOPPED;
-            SetServiceStatus(this.ServiceHandle, ref serviceStatus);
+            SetServiceStatus(ServiceHandle, ref serviceStatus);
 
             eventLog.WriteEntry("Service stopped", EventLogEntryType.Information);
         }
@@ -94,7 +94,7 @@ namespace WpkgInstaller
                     RedirectStandardInput = true,
                     RedirectStandardOutput = true,
                     RedirectStandardError = true,
-                    WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden,
+                    WindowStyle = ProcessWindowStyle.Hidden,
 
                     FileName = Environment.GetEnvironmentVariable("comspec"),
                     Arguments = "/C \\\\wpkg.ch.cam.ac.uk\\wpkg\\wpkg.cmd /synchronize",
@@ -132,7 +132,7 @@ namespace WpkgInstaller
 
         }
 
-        private void eventLog_EntryWritten(object sender, System.Diagnostics.EntryWrittenEventArgs e)
+        private void eventLog_EntryWritten(object sender, EntryWrittenEventArgs e)
         {
 
         }