Changed function and variables names for clarity