Adding some helper functions to the example.