Changed Log.d to Log.i