Fix depreciated methods
Merge pull request #8 from onnnon/fix-depreciated-methods

Fix depreciated methods