Better location of the mutexes