Pass proper value to class.