Added createPrimaryCollection procedure.