some changes in thread, does not work fine though
Cambios no funcionales