Fixed bug that sometimes caused exclusions to be added twice
Apply substitutions to added residues