Added "ConsolidateSquares" and "FilterByBGR" functionality