Cleaned up sample code to generate fresh input names at each run.