Added code for assignation sequence in fragment selection