Add frequency to context

See #81.