Clarify functions with better var naming and comments.