Some refactoring for intersection scripts