Added class for handling tasks that were formerly recursive.