Eliminated back-and-forth 0-index math
Filtered buildbadmetadata with method reuse