Added getArrayResult method