Added an add function.