Refactored to prepare data regions quickly