Added more debug messages in attempt to squash a bug on #6