The add function is finally finished