working on driver code to possibly use sine/cosine functionality instead
of custom predictive code.