could be due to
Optional ByVal MachineName As String = "localhost" , _

is a quick response, I haven't analyzed carefully the code