Add support for key ranges, and better insert support.