All that keeps the Doctor from throwing the dematerialization circuit across the room is the fact that it will set him back even further. Instead, he takes off for a walk.
An hour later, he slows to watch the people. One in particular captures his interest; a woman with a meditative expression on her face, though her hands are busy with needles and yarn.
He stops to watch, envious of the peace the activity seems to bring her. Within a few minutes, he's memorized the sequence of movements.
Maybe he should try knitting a scarf, just to pass the time?