Fixing my Extract Variable function.