Move process stuff back into proto

This should be more efficient and allow more concurrency.