v0.3 w/ initializer tracking and customizable threshold, courtesy of @grosser