Replacing deprecated methods
Merge pull request #3 from abstractj/working

Replacing deprecated methods