Implement bin/nameit.