Adjust coloring of loop function.