Removed useless constructor debug logging
Enabled timing measurement and call depth debug logging
Ensured that singletons are thread-safe