Moved TaskDetails declaration.