BMH with wildcards implementation