made LOOP_TIMES as a command line option with default value=1