Implemented add functionality