Created an iterating encoder to enhance efficiency on large sequences. Not yet used.