Commented code for process opt.path