Add file extension to generated name.
Track file storing time and print debug messages.