Added an optional coloring according to penalty per curve