In all patients, standard monitoring, including radial arterial catheterization, and state and response entropy (SE and RE, respectively) will be applied. Patients will received either a thoracic epidural or a paravertebral catheter before the induction of anesthesia for open thoracotomy or patient-controlled systemic morphine after VATS, for postoperative analgesia.