Added cancellation function in traffic analyzer