More work on explanation generator