Issue #2. Introduce execution contexts
Merge remote-tracking branch 'origin/issue_2'