Implemented indexing and dumping.