Initial support for context and focus (see Issue #218).