Implement add function.