Added a function to clear and reload all dynamic tasks