Implemented light and group listeners.