Implement 'to' command