Forgot to adjust applyResolution function.