Add basic namespace support
Add debug log