This task and the one above look similar to each other, is it possible that they can be consolidated?