Finished add function.