Working on regions in Universal Graphics Library