Added terminal id log