Added some checks on the example.