Simplify refresh() rate code
Compute number of steps based on sliding window
Add debug logging to parallel sort