NXT code looks like it works correctly
Little bit of work on timeout in nxt_control