Add debugging statements to understand what's going on