Change Pipeline so that it takes an Upload instance directly