Adding bg tasks to hash trees