Implemented on-demand values for calculating dimensions of temporary variables