Cleared up code. Runs too slow by about 10 seconds; 14%. No idea how to fix.