This is followed by a final routine which is optional.