Added mutex, Added run method