Fixed a lot of functions that aren't working.