Update dependencies and add callback parameter

Please use this pull request this modules is very usefull for me :)