1st trial. Added some functions for OMLP and RNLP