Edit: nanfunctions.py