Added logs to see what happen, added synchronized WAITING flag