Added a deprication warning.