Create a new measurement function and fixing