Made adap_mt_task work for cluster