Collisions are working after code refactoring.