Utilities for the sample applications.