Clarified app_delegate code