Setting repetition
Handle printing of commands on repeat