Handled namespaces.

Thanks to @laczour for the fix, given in #1.