Rather than executing data analysis right away, it's probably better to split the analyze code into a separate user entered section and instructions.