Made agent work with either WMI or exe tools