Utilize dupulicate code
Simplify attr_writer