Uses DynamicMethod to write values