Added debug message. Setup message listeners.