Might be nice to make the max buckets a module constant. Took me a second to figure out where it was coming from.