validityMask is in, making this code muuuuuuuuuch faster. I will work on adding the circular mask data for faster regression-circle drawing later.