You can try to add a loop inside main function.

I hope you can success.