Removed deprecated function calls
Merge pull request #38 from enumag/patch-callback

Removed deprecated function calls