Fixed spelling and variable names.