Adds core functions and code.