Added some functions to conform to how the rest of the file works.