Implemented a repeat solver module for more complecated regions.