Added inline optimization for structs.