Returns function insted of constant