Adding critical sections.
Adding critical sections.