This commit is for debug... Writing thread didnt work...