Fix Deprecation (Revised)

I fixed the formatting issues on here and the deprecation has been added too. I don't know what I did but it worked. :)