Working version of field.c