Added proper logging through application.