Add auto synchronize data function.
Fix bug of creating receiving file.