Changed to use an Action instead of QueueUserWorkItem
Updated to correctly accept host/ip/logpath parameters