Fixed the bug! Probabally other bugs too.