Update listeners and main class.