Fix issue #7
The namespace was undefined at the point where it was being used.
Reorganized engine initialization to fix it