Self temperature compensation