Added read/write support for lights.