Fixed #1. May need to adjust comparison threshold.