Added state diagram suppoer. More responsebillity to renderers.