Added LMF based retrieval function