`$attribute` should also be passed in.