Removed synchronization and replaced with read/write locking.