Updated parser to use fgets.