Whew. Cleaned up the code a bit. Method: Delete random bits of code and try if the program still works. :P