Fix a couple errors and get a working example.