Adds synchronization on getMap. Will probably cause performance

problems...

May not solve everything. BTW, may not solve anything...