Implemented ambient light support.