Add command loop