Accept key and alter index, mostly working now