Make getInstance methods synchronized
Merge remote-tracking branch 'origin/master'