I reformatted the code into a more commonly used format. Everything works fine now. Let me know if you have any questions!