Split common main task in several task