Converted counter + colour funcs to classes.