Enhance variable manipulation in tempest