Added 'synchronized' to run method definition