Added support for custom named prime ideals