Added terminal_id