Added lfm functionality