After 882d531792, the existing code in the helper reads past the end of the array for refresh rate, which is broken. This PR also refactors the default modes into a getDefaultModes method so that it can be used for a reset feature later.
882d531792