Changed a var to a val