Dynamic main task working and checking needed files