Added a deprecation facility for functions