Add basic index support.