Broke parsefile into open/close parts