Added historise functions and other classes.