Try to use code tags so that code is more readable for others on the forum just than a pain-text copy pasta.
How to use code tags?