implemented AbstractCyclicThread
Started working on diff.