Multithread tested and working!