Fixed depreciation warnings.