First version of region based analysis.