Improved error detection, introduced "is worse than" method. Fancied up log output.