Added setField method