Added mechanism to check for collisions.