Implemented brightness changing.