Include device_info_serial in lag function