Implement "nextCOmmand"