Changed local variable names for readability.