Added a flag to track if a residue is a end group