Update BeforeRun.php