Fixed variable naming that was creating errors.