Implementing `rest`.