Added coloring and get/set functions for maximum.