Removed unnecessary critical section