Tried to fix a bunch of crap.