Added warnings for deprecated code