UI updates and other stuff.