Merge "Support looper callbacks based on smart pointers." into jb-dev