script fixed for timing and congestion based packing