Allow specifying parent in add
Using function