Frequency compensation