Added new code to only refresh data when fileSize changes. Also added the lastUpdated time.