Implements finish.