Made main listener.