Fix: update to use new API
Merge pull request #2 from gram003/master

Fix: update to use new API