Cleaned code and tried new thread technique

New implementation