Beginnings of boolean decoder