CC: Refactor pipeline and use Double