Changed mutex usage.