Added running=true inside run() method