Started resolving deprecation issues

Lots of deprecated classes and functions used, started replacing them
with viable alternatives.