Done with a draft version of measure_static