Validating inputs: must be points or it can segfault