Set values via reflection