Preparation for length check, adding a data structure.