Implemented brightness adjustment