Fixing example to work in run mode
Merge pull request #27 from wpreul/master

Fixing example to work in run mode