Add frequency to context

See #81.
Merge pull request #94 from hbz/issue-81-frequency

Add frequency to context