Updated some deprecated methods.
Merge pull request #45 from Vexatos/master

Updated some deprecated methods.