Added thread throttling and email notification