Use ClassReference instead of string to identify classes