Error reporting fix and simple example.