Added zeros for n=4 and n=5; modified setBrightness