Added defn' for single-threaded usage to remove synchronization locks.