Added basic support for bright/dim functionality.