optimized setInteger, setReal, and updateFields to a single function.