Remove deprecation warnings + other things.

www.youtube.com/watch?v=CevxZvSJLk8
What does that do?