Update check.m