Fixed an issue when callback block wasn't been called on the main thread.
Added UI for example.