Added 'next' and 'reset' commands.