Multiple threads improvement (mainly UI)