Runs correctly, fixed tons of bugs.