support sleep, multiple commands and 'next' command.