Fixed lots of bugs. Still unstable.