Added a condition to the SesameHandler