Added thread-safe soft reference dictionary. -James & Kartik