Add depreciation warnings

Add depreciation warnings to code