Added mutex initialization.