Use int rather than long for point array dimension