Converted the final section of the collision kernel. There seems to be a memory error somewhere though :-p