Switched to Constant(k) to prevent some recompilation.