Filter out entries out of time range and still in progress from activeEntries. Added comment block describing general flow.