local function getValue() return turbine.getSteamFilledPercentage() * 100 end local function color() local value = getValue() return colors.black end local function watch() print("Turbine Steam Filled: " .. getValue()) end local function report() local color = color() monitor.setBackgroundColor(color) value = getValue() monitor.clearLine() monitor.write("Turbine Steam" .. value .. "%") end return { report = report, watch = watch }