Sequence to store everything. Extended lookup mode in distance calculation.