Add attributes to return generated key.