Fixed IDE supplied issues. Pretty much just moving things to be local variables. Better for memory management. Doesn't really affect our app too much, but it was easy.