Flatten chem.multi_job function