Replace plain int with defined key