Add predict mode to the binary simulator (#1568)