What determined where people would settle as they moved westward ?