Updates to some flash algos.