Tasks are now scheduled to prevent stack explosion.