Add attributes to prototype