Refactored user variable to instance variable