Adding feature to send output error by email. 07/04/2014