Modifications to region selection scripts