Small function to load from file