Set the name attribute when defining functions