Added declarations and definitions for "field" type.