Added optional fields to the example code.