Shitload of changes, bugfixes and other stuff.