Added missing logic to reset the process method