Implementing the inject method for the process class