This script was available in Pipeline 1. Need to investigate what is needed to port it to Pipeline 2.