Correct variable names and fixed a comma issue.