Added SubPathState structure