Assemble namespaced variables correctly