[WIP] Fixed stuff. Lots of stuff. Edit this commit message later.