Applied patch for second task.