Add refresh rate code.