Added bootstrap and trimming protocols f to d