Added linear interpolation , with help from Vesa