The start of a stab at validation