Fixed an example and renamed a function.