added repeat command option