How does the sentence end?

The student preferred doing their homework with pencil rather than pen, because the
pencil provided more control.