Command listener.