Added functions to handle multiple regions