Is there a reason for this whole block, or is it just debugging code that can be deleted?