Shorten sample code.