Start of looped command implementation