Replacing System.out with Log.d