Added result array parsing