Updates to the timeline routines.  Added the pqueue module.