File loader mostly functional