Ported to Android Studio