Added model z (closest match from grid) to output