Another attempt at synchronization -- all variables are now static.