Use reflection instead of string