Added saving files before building