0.01: First version 0.02: Support BangleJS2 0.03: Added threshold