Added some debug to send email on control set