Completed the comparator engine. Need to perform some tests on it.