Adding missing debug statements