Added isUsed check to measures reference.