Updating BN code