Change syntax of setflag command, fix regions in area search