Cooking of flow data mainly implemented. Some tests are still missing.