Ensure callback is made on the main thread
Merge pull request #2 from BrendanLynch/master

Ensure callback is made on the main thread