Please use Code Tags when sharing code on the forums. Otherwise your code is very hard to read and analyze.