Added commented logic to processHandler