Beginning of setkey