My code for modifications to get Dukto working on Android