Fixed bugs, works now.