Implemented add method.