Removing Process, replace with thread
Fix bug