Added a comment and changed a function name.