Add deprecation warnings in deprecated functions