The add functionality