Coding nbif (incomplete)