Defined function for adding processes
added the debug event files