Add local variable declarations of temp results