Add the majority of the functions.