Allow convert local variable to instance variable to work with function arguments