Made profiling optional...
Trying out cjson and another minor optimization