Updated depreciated function call