Add constant check