Fixes a lot of warnings. ^^