Reverting back to old function call for offset calculation