Added errors listener.