Added debug statements