Created add function