Corrected syntax errors and other mistakes. This version of the pipeline appears to be running correctly.