Update medium.php