Helper Generalization

Generalized the helper class into a context which can then be
implemented in a variety of different ways. Still some problems lurking
with the state map but they will be remedied in short order.