Made valid.m more valid.