Added more debugging statements