Fixed global synchronization and mutex