Slightly modified script to glue cross sections