Minor name change in variables

Use `attributes` in place of `params`