Adjusted hooks for SMS, added better functionality in app.php