Code for nxt4