Updated the example code.