Add attributes fn