Added methods to set fields