Added functions to add, remove and move substructs.