Simplifying set_multi function.