Wrap tasks in a container