Update flow.php