Added debug statement to check variable declaration