(P) Update exec method in Application.php