Added some syntactic sugar to the pattern-file reader