Replace App.delegate calls