Added cwd argument to process