Simplify sample code.