Remove: unnecessary variable $attributes