Add SaveFileFunction and SaveFile macros