Macro for setting values
Optimize addition