Wrote some Target stuff and some main Pipeline logic