Define a variable only as needed