Put the attributes on the right function