Added "overwrite" parameter. Write and read info files.
Delay retries. Thread handling cleanup.
Limit number of retries.
Added callbacks.