Beginning of FieldTest… mostly copied code :)