Added protection for call to get mod time