Updated to support level-based keys for services.