Started code for tracking crystals as continous groups. This is not fully working code.