Implemented dirty collision checks.