Changed processes to threads because the webapp won't happen