Added flexibility to the field accessor.