Added createSingletons method