Fix syntax error
Parameters and variables renamed to have more meaning