Really confusing, added more debug lines.