Useful functions written in NLP++