Init fields in Hardware class constructor.