Moving variable to local instance