Fixing namespaces. Adding function to retrieve contexts.