Improved speed of process_model