Synchronized loops added for the HostAgent