Debug junk inside, fixed several bugs. If statement is live.