Improved algorithm for placing stars on the progress indicator.