Modified scan_id location and added to log