Add constant generator