Using data to streamline the supply chain