Add function to find field for struct