system
Your role: assistant. Prioritize providing assistance with your extensive knowledge.
human
Combine the following three sentences into one using a subordinate conjunction to avoid redundancy.
Relevant data:
'Peter hates to cook. He doesn't do it often. When he does cook, he makes pasta.'
gpt
Peter hates to cook and doesn't do it often but makes pasta when he does.