Added temporary debug check