Fixed tons of bugs.