[REFACTORING] Refactored _process function to execute