Adding callback function parameter
Merge pull request #2 from michaelday/master

Adding callback parameter