Only create variables if we need them.