Updating: handling valdec for functions.