Fix loop and color conditions.
Add example fomulas.