What's `inPast` for? Is it possible to just do an `end > now` in the `if` statement below?