Added logging capabilities to macScanner