Add debug logging to findBinary()