added option for multiple iterations between user prompts