Moving blocking file operations required to transmit files off the main thread.
Read the lastmodified off the main thread.