Split init_len up to make it easier to read