Avoid depreciation warning