Add `processFile` for more extensibility.

/cc @ef4