Update deprecated method
Merge pull request #30 from smacfarlane/master

Change deprecated method