logcat monitoring. Code cleanup.