Added the ctor used in the new implementation of add