Refactored process url task.