Fixed incorrect argument order for sample code (Credit EricK)