Adding constructIndex() for compressed