Added support for per-file options.