Completed fen parser (untested)