Fixes all the remaining warnings for good as of now.