Fixes

- Multithreading
- Fixed bugs