Added measurement functions.