Adding a handy little automeasure decorator