Implemented working cache selector. Still needs a better UI though.