Add read_file method