Switched from threads to processes