Improved window size calculations, timer pruning.