Utility function common to any potential application.