Port of the Android Version