Add saveWithNamespace method