Update deprecated functions
Merge pull request #201 from bjz/fix-warnings

Update deprecated functions