Added code for custom application delegates, and the respective configuraiton