Replaced deprecated shell.running with process.running.