Replaced writePoint with variadic writePoints