Fixes. Working IR, trainCtrl