Adding click detection.