Remove depreciation warning