Added a command that runs a certain amount of times for convenience.