Working on refactoring person_engine functions