Included script for the first part of the pipeline