Create stack variables for functions