Support for Android 4 and multi-thread usage