Adding code to NEMO