Lots of debug statements for testing