-Added debug statements