Re-implemented console listener.