Updated sinkhistory.py to index by time.