Added a more sophisticated example handler