Improved the way that resistances and clock frequency are set.