Added commands and events for granting an application.