Changed the saveFn and prepFn attributes into parser and formatter.
Made private copies of them to make code simpler and faster.