Modified the code so that it uses the correct constant