Fall back to old method with deprecation warning