Fixed issues with the example code.