Implement complete pipeline until Sam out