Change global user variable to class