Improved application initialization