Every new routine I have ever written and performed probably occurred extemporaneously. Then after you have fleshed it out and tried it out in front of a number of audiences and it works, you put it down on paper.