Add compatibility layer for deprecated functions