After changes to nt_utilties and resna_custom. Moved code from resna_custom to nt_utilities