Getting correct value out