Updated logcat detail output and added in lower bounds check on key iteration