Primary collisions code