Setting the application appropriately