Fixed syntax errors so now it runs but slowly