Implement add method.

Update add method.