Remove deprecation warnings + other things.

www.youtube.com/watch?v=CevxZvSJLk8