- Initialize tmp variable only once.