Implemented preservation of file modes #1.