Changed all of the function names to be more idiomatic.