Fix Deprecation.
Merge pull request #29 from MattBDev/master

Fix Deprecation (Revised)