Added hooks for JSON layer, Debug mode and layer tab enhancements.