Measure configure is tested. Some bugs have been repaired.