Working data path: This is the code we used for the demo