Initial collision code