Improved a bit mod detection checks.