Use program variables to assign to rather than logical variables