Added support for namespace. Fixes #8