Add support for inplace file update.