Fixed as much as I could see :/ f...ing timer and threads.