Added debug statements to see what's going on