Added readLong in UI, better selection of segment in Cache