Make code more readable in oneprocess.cpp