Added messages and code to run an external process