Finished set_multi() code.