Removed critical sections from private functions