Invoke callback when result in memory.
Merge pull request #135 from square/dimitris/callback-fix

Invoke callback when result in memory.