Export length filter function for backwards compatibility.