Separating variable declaration from first assignment, which should fix some ksh problems.