Added file hook
Restructured parser for more-than-one parser option