Prevents evaluating variables multiple times