Initial work on RDMP state engine and algorithims.