Refactored code to work with new SubjectProcess