Simplify region selection with mod