Update the code to support simple regression test cases. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>