Added per session and singleton examples.