Created LFI function and implemented it