Added temporal var function