Replaced harvestlevel code