Added 'loop' and 'loop n' commands.