Simplifying sample code.