Filled out some functions.