Initialize segments