Added timeout and logging to process calls.