Added early forecast pipeline code