Added simple app delegate implementation.