A subtask of #19.
A subtask of #19.