Implemented history today. Took a long time. Might still have problems.