Added email feature to also email statistics to scheduler