Thank you, It now gives me a value but its going up to 40, when the maximum should be 1 and the min -1.