Fixed 3.1.2 deprication issue
Merge pull request #3 from sheadawson/master

Fixed 3.1.2 deprication issue