More work on ncs.py