@arahuja; thanks for the suggestion here, I believe your proposal is much more elegant than my current implementation. I believe that input stages may also need to have access to the reference sequence as well, but that should be reasonably straightforward to provide.