Question: do it on the fly?
Answer: If you do something on the fly, you do it quickly, often while you are doing something else, without preparing and without thinking too much about how it should be done: This new rule seems to have been created on the fly.