Fixed function/variable name that was causing several errors.