Added retry delay persistence.

Why not move impl here and to have one header for files?