Edited ability to handle brightness range.