Simplified sample code.