Adding ghost recognition.