pi->end <= pi->cur. Same for the rest please.